package com.xxg.renrenorder.dao.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * 商品评论
 *
 * @author xxg
 * @date 2020/11/9
 */
@Data
@ApiModel(value = "Comment", description = "商品评论")
public class Comment {
    /**
     * 商品skuId
     */
    @NotNull(message = "skuId不能为null")
    @ApiModelProperty(value = "商品skuId", required = true)
    private String skuId;
    /**
     * 订单ID
     */
    @NotNull(message = "orderId不能为null")
    @ApiModelProperty(value = "订单ID", required = true)
    private Long orderId;
    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID", hidden = true)
    private String userId;
    /**
     * 用户昵称
     */
    @ApiModelProperty(value = "用户ID", hidden = true)
    private String userName;
    /**
     * 用户头像
     */
    @ApiModelProperty(value = "用户ID", hidden = true)
    private String userPhoto;
    /**
     * 用户评论
     */
    @ApiModelProperty(value = "用户评论")
    private String comment;
    /**
     * 评论时间
     */
    @ApiModelProperty(value = "评论时间", hidden = true)
    private Date createTime;
    /**
     * 星级
     */
    @ApiModelProperty(value = "星级", required = true)
    private Integer stars;
    /**
     * 评论图片
     */
    @ApiModelProperty(value = "评论图片")
    private List<String> images;
}
